{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=353
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,n:longint;
	ans:extended;
	k:int64;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
ans:=1;
k:=2;
for i:=1 to n do begin
	ans:=ans+k;
	k:=k*2;
end;
write(trunc(ans));
end.